package com.gxa.sso.service;

import com.gxa.sso.exception.CustomerException;
import com.gxa.sso.pojo.User;

import java.util.Map;

/**
 * Created by zxd on 2020/12/16
 **/
public interface UserService {


    public Map<String,String>  login(String phone,String code) throws CustomerException;

    /**
     * 根据token查询用户信息
     * @param token
     * @return
     */
    public User queryUserByToken(String token) throws CustomerException;

}
